﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cms.Core.Infrastructure.ExpressionUtil
{
    public class CmsConditions
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        public string Value { get; set; }
        /// <summary>
        /// 值类型
        /// </summary>
        public string ValueType { get; set; } = "string";
        /// <summary>
        /// 
        /// </summary>
        public CmsOperatorEnum Operator { get; set; } = CmsOperatorEnum.Equal;

        public ConnectEnum Connect{ get; set; } = ConnectEnum.And;

        public bool IsEmptyOrNull { get; set; } = false;

    }

    public enum CmsOperatorEnum
    {

        Contains,
        Equal,
        Greater,
        GreaterEqual,
        GreaterThanOrEqual,
        Less,
        LessEqual,
        NotEqual,
        In,
        Between
    }

    public enum ConnectEnum
    {
       And,
       Or
    }
}
